<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>JACoMode</title>
        <meta name="author" content="Jonathan MERCIER, Louise-Amélie SCHMITT, Florence Maurier, Marianne Dussart, Nicolas Fontaine"/>
        <meta name="keywords" content="bioinformatique,bioinformatiques,bioinformatic,bioinformatics,open source,linux,software,logiciel,biologie,biology,ADN,DNA,protéine,proteomic,génomique,genomic,protéomique,proteomic,pathway,metatool,ACoM,JACoMode,Java,JEE,JSP,metabolic,network"/>
        <meta name="description" content="JACoMode it is a tool for analysis metabolic network"/>
        <meta name="ROBOTS" content="INDEX, FOLLOW"/>
        <link href="JACoMode.css" rel="stylesheet" type="text/css"/>
        <script type='text/javascript' src='/JACoMode/dwr/interface/Content.js'></script>
        <script type='text/javascript' src='/JACoMode/dwr/engine.js'></script>
        <script type='text/javascript' src='/JACoMode/dwr/util.js'></script>
        <script type="text/javascript" src='dynamicForward.js'></script>
    </head>
    <body>
        <div id="conteneur">
            <div id="header">
				<div class="hd"></div>
				<div class="bd"></div>
                <a href="index.jsp"><img src="IMAGES/JACoMode.png" width="270" height="60" alt="JACoMode.png"/></a><h2>Graphical frontend for ACoM</h2>
            </div>
            <div id="left">
                <div class="hg"></div>
                <div class="hd"></div>
                <div class="bg"></div>
                <div class="bd"></div>
                <p class="titleCenter" >Menu</p>
                <a href="#" title="Process new file"    onclick="forward('acomForm')"           onmouseover="return overImage('processNewFile')"       onMouseOut= "return outImage('processNewFile')"    ><img id="processNewFile"    src="IMAGES/buttons/processNewFile1.png"      width="180" height="46" alt="link to process new file web page" /></a><br/>
                <a href="resultTable" title="Table result"                                      onmouseover="return overImage('tableResult')"          onMouseOut= "return outImage('tableResult')"       ><img id="tableResult"       src="IMAGES/buttons/tableResult1.png"         width="180" height="46" alt="link to table result web page"     /></a><br/>
                <a href="#" title="Comparaison"         onclick="forward('compareForm')"        onmouseover="return overImage('compareStatistics')"    onMouseOut= "return outImage('compareStatistics')" ><img id="compareStatistics" src="IMAGES/buttons/compareStatistics1.png"   width="180" height="46" alt="link to statistics web page"       /></a><br/>
                <a href="#" title="Overall reaction"    onclick="forward('bilanForm')"          onmouseover="return overImage('overallReaction')"      onMouseOut= "return outImage('overallReaction')"   ><img id="overallReaction"   src="IMAGES/buttons/overallReaction1.png"     width="180" height="46" alt="link to overall reaction web page" /></a><br/>
                <a href="#" title="About JACoMode"      onclick="forward('about')"              onmouseover="return overImage('about')"                onMouseOut= "return outImage('about')"             ><img id="about"             src="IMAGES/buttons/about1.png"               width="180" height="46" alt="link to about web page"            /></a><br/>
        </div>
        <div id="center">
                <div class="hg"></div>
                <div class="hd"></div>
                <div class="bg"></div>
                <div class="bd"></div>
                <%@page language="java" contentType="text/html" pageEncoding="UTF-8"%>
                <%@page errorPage="/pages/error.jsp" %>
                <!DOCTYPE HTML">

                <div class="hg"></div>
                <div class="hd"></div>
                <div class="bg"></div>
                <div class="bd"></div>

                <h1>New project</h1>

                <p class="help">
                    In order to get started, you will need two files.
                    You will need a file in .dat format containing the list of reactions, and a file in .out format which is the output file of the analysis of the .dat file by METATOOL.<br/>
                    For more information, you can check the folowing website: <a href="http://pinguin.biologie.uni-jena.de/bioinformatik/networks/" title="Lien_METATOOL"> http://pinguin.biologie.uni-jena.de/bioinformatik/networks/</a>
                </p>

                <form action='selectWichAcomSession' method="post" enctype="multipart/form-data" name ="acomGlobalResults">
                <p class="instruction">Please select the .dat and .out files you wish to process:</p>
                <table class="invisible">
                    <tr>
                        <%
                            String browser = fr.ubdx1.jacomode.models.DetectBrowser.getUserAgentString(request);
                            if (browser.equals("Gecko"))
                            {
                                out.println("<td>Select a .dat file:</td><td><input type=\"file\" name=\"fileDat\" id=\"fileDat\" value =\"fileDat\"/></td>");
                            }
                            else
                            {
                            out.println("<td><input type=\"file\" name=\"fileDat\" id=\"fileDat\" class=\"inputTypeFile\" value =\"fileDat\"/><input type=\"button\" value=\"Select a .dat file\" onclick=\"getfile('fileDat')\" class=\"inputTypeButton\" /><input type=\"text\" id=\"selectedfilefileDat\" size=\"80\"/></td>");
                            }
                        %>
                    </tr>
                    <tr>
                        <%
                        if (browser.equals("Gecko"))
                        {
                            out.println("<td>Select a .out file:</td><td><input type=\"file\" name=\"fileOut\" id=\"fileOut\" value =\"fileOut\"/></td>");
                        }
                        else
                        {
                            out.println("<td><input type=\"file\" name=\"fileOut\" id=\"fileOut\" class=\"inputTypeFile\" value =\"fileOut\"/><input type=\"button\" value=\"Select a .out file\" onclick=\"getfile('fileOut')\" class=\"inputTypeButton\" /><input type=\"text\" id=\"selectedfilefileOut\" size=\"80\"/></td>");
                        }
                        %>
                    </tr>
                </table>
                <input type="Submit" value="Process" />
                </form>
                <p class="help">
                    Data processing may take several minutes. <br/>
                    Please be patient when you submit the form..
                </p>
                <%
                    out.println("<p><span  class=\"textBold\">note: </span><span  class=\"textRed\">current id session " + request.getAttribute("id")+"</span></p>");
                %>
                </div>
            <div id="foot">
            </div>
        </div>
    </body>
